<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html">

<h:head>
	<title></title>
	<h:outputStylesheet library="css" name="style.css" />
</h:head>
<h:body>
	<div id="header" style="padding: 5px; height: 50px">
		<c:if test="${userlogin !=null}">
			<div id="css-menu">
				<ul>
					<li><h:link value="Personal Page" outcome="home"
							styleClass="text-top" /></li>
					<li><h:link value="Edit Personal Page" outcome="edit"
							styleClass="text-top" /></li>
					<li><h:link value="Search Page" outcome="searchresult"
							styleClass="text-top" /></li>
					<li><h:link value="Search groups" outcome="searchGroup"
							styleClass="text-top" /></li>							
				</ul>
			</div>

			<h:form>
				<ul class="navigation">
					<li><span style="color: #ffddbb"><h:outputLabel
								value="#{loginBean.user.login}" /></span></li>
					<li><h:commandButton action="#{loginBean.logout}" id="logout"
							value="Log Out" /></li>
				</ul>
			</h:form>

		</c:if>
		<c:if test="${userlogin ==null}">
			<h1 align="center">Hello, guest!</h1>
		</c:if>
	</div>
</h:body>
</html>
